package org.osoftware.mumi.web.controller;

import javax.faces.application.Application;
import javax.faces.context.FacesContext;

public abstract class BaseFormBean {

	private static final String VAR_NAME = "msg";
	
	public String getMessage(String key) {
		FacesContext facesContext = FacesContext.getCurrentInstance();
		Application application = facesContext.getApplication();
		
		return application.getResourceBundle(facesContext,"msg").getString(VAR_NAME);
	}
}
